package com.its.oa.model;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private Integer id;
	private String username;
	private String password;
	private String actualname;
	private String act;
	private Date createtime;
	private Set<UserRole> userRoles = new HashSet<UserRole>(0);
	private Set<Repair> repairsForEvaluate = new HashSet<Repair>(0);
	private Set<InoutStore> inoutstoresForOutuserid = new HashSet<InoutStore>(0);
	private Set<Attendance> attendances = new HashSet<Attendance>(0);
	private Set<Repair> repairsForApply = new HashSet<Repair>(0);
	private Set<InoutStore> inoutstoresForObsuserid = new HashSet<InoutStore>(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String username, String password, String actualname,
			String act, Timestamp createtime, Set<UserRole> userRoles,
			Set<Repair> repairsForEvaluate, Set<InoutStore> inoutstoresForOutuserid,
			Set<Attendance> attendances, Set<Repair> repairsForApply, Set<InoutStore> inoutstoresForObsuserid) {
		this.username = username;
		this.password = password;
		this.actualname = actualname;
		this.act = act;
		this.createtime = createtime;
		this.userRoles = userRoles;
		this.repairsForEvaluate = repairsForEvaluate;
		this.inoutstoresForOutuserid = inoutstoresForOutuserid;
		this.attendances = attendances;
		this.repairsForApply = repairsForApply;
		this.inoutstoresForObsuserid = inoutstoresForObsuserid;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getActualname() {
		return this.actualname;
	}

	public void setActualname(String actualname) {
		this.actualname = actualname;
	}

	public String getAct() {
		return this.act;
	}

	public void setAct(String act) {
		this.act = act;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Set<UserRole> getUserRoles() {
		return this.userRoles;
	}

	public void setUserRoles(Set<UserRole> userRoles) {
		this.userRoles = userRoles;
	}

	public Set<Repair> getRepairsForEvaluate() {
		return this.repairsForEvaluate;
	}

	public void setRepairsForEvaluate(Set<Repair> repairsForEvaluate) {
		this.repairsForEvaluate = repairsForEvaluate;
	}

	public Set<InoutStore> getInoutstoresForOutuserid() {
		return this.inoutstoresForOutuserid;
	}

	public void setInoutstoresForOutuserid(Set<InoutStore> inoutstoresForOutuserid) {
		this.inoutstoresForOutuserid = inoutstoresForOutuserid;
	}

	public Set<Attendance> getAttendances() {
		return this.attendances;
	}

	public void setAttendances(Set<Attendance> attendances) {
		this.attendances = attendances;
	}

	public Set<Repair> getRepairsForApply() {
		return this.repairsForApply;
	}

	public void setRepairsForApply(Set<Repair> repairsForApply) {
		this.repairsForApply = repairsForApply;
	}

	public Set<InoutStore> getInoutstoresForObsuserid() {
		return this.inoutstoresForObsuserid;
	}

	public void setInoutstoresForObsuserid(Set<InoutStore> inoutstoresForObsuserid) {
		this.inoutstoresForObsuserid = inoutstoresForObsuserid;
	}

}